package com.xdf.zipperdye.service;

import com.xdf.zipperdye.dao.business.CpDetailMapper;
import com.xdf.zipperdye.model.CpDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CpDetailServiceImpl implements CpDetailService {
    @Autowired
    private CpDetailMapper dao;
    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(CpDetail record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(CpDetail record) {
        return dao.insertSelective(record);
    }

    @Override
    public CpDetail selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public int updateByPrimaryKeySelective(CpDetail record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CpDetail record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public int multiInsert(List<CpDetail> records) {
        return dao.multiInsert(records);
    }

    @Override
    public int multiUpdate(List<CpDetail> records) {
        return dao.multiUpdate(records);
    }

    @Override
    public List<CpDetail> selectByParentId(Integer parentId) {
        return dao.selectByParentId(parentId);
    }

    @Override
    public int deleteByParentId(Integer parentId) {
        return dao.deleteByParentId(parentId);
    }
}
